package com.link2room.ironhide.service;


import com.link2room.ironhide.dto.result.manager.L2RServiceDto;
import com.link2room.ironhide.entity.L2RHotelService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by sss on 2016/10/12.
 */
public interface IL2RServicesService {

    <S>List<L2RServiceDto> listL2RServices(String lhotelGroupCode,
                                           String lhotelCode,
                                           S queryObj,
                                           Class<S> sourceClass, boolean isHotel)throws Exception;

    void saveOrUpdateL2RServiceDto(Object[] delIds, List<L2RServiceDto> l2RServiceDtoList)throws Exception;

    @Transactional
    void saveOrUpdateHotelServices(String lhotelGroupCode, String lhotelCode, List<L2RHotelService> l2RHotelServiceList)throws Exception;
}
